#include "include/widget.h"
#include"include/connection.hpp"
#include"include/logindialog.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    if(!lxj::createConnection()||!lxj::createXml()) return 0;
    QApplication a(argc, argv);
    Widget w;
    LoginDialog dlg;
    if(dlg.exec()==QDialog::Accepted){
        w.show();
        return a.exec();
    }
    else
        return 0;
}
